<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Range Interrupt Register Enums</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sar__range__thres__register__enums.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Range Interrupt Register Enums<div class="ingroups"><a class="el" href="group__group__sar.html">SAR          (SAR ADC Subsystem)</a> &raquo; <a class="el" href="group__group__sar__enums.html">Enumerated Types</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>This set of enumerations aids in configuring the SAR RANGE* registers. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga4e9ea88485879db9d2b7667066577fe6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__range__thres__register__enums.html#ga4e9ea88485879db9d2b7667066577fe6">cy_en_sar_range_thres_shift_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#gga4e9ea88485879db9d2b7667066577fe6a06f202dbc111e4adea686b491aeb382a">CY_SAR_RANGE_LOW_SHIFT</a> = SAR_RANGE_THRES_RANGE_LOW_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#gga4e9ea88485879db9d2b7667066577fe6a96d78f3a3f9dbb62e0349aaf56b5df6c">CY_SAR_RANGE_HIGH_SHIFT</a> = SAR_RANGE_THRES_RANGE_HIGH_Pos
<br />
 }<tr class="memdesc:ga4e9ea88485879db9d2b7667066577fe6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the lower and upper thresholds for range detection.  <a href="group__group__sar__range__thres__register__enums.html#ga4e9ea88485879db9d2b7667066577fe6">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga4e9ea88485879db9d2b7667066577fe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccf649d65a86e17939c3d20a684cd9cd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__range__thres__register__enums.html#gaccf649d65a86e17939c3d20a684cd9cd">cy_en_sar_range_detect_condition_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#ggaccf649d65a86e17939c3d20a684cd9cda2f2cc118441effd4d6825028941b1de8">CY_SAR_RANGE_COND_BELOW</a> = 0UL, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#ggaccf649d65a86e17939c3d20a684cd9cda4828750edf10fa906cfeb20dd8afe45d">CY_SAR_RANGE_COND_INSIDE</a> = 1UL, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#ggaccf649d65a86e17939c3d20a684cd9cdab2c9127472581f2ada8ba764e6fac29b">CY_SAR_RANGE_COND_ABOVE</a> = 2UL, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__range__thres__register__enums.html#ggaccf649d65a86e17939c3d20a684cd9cda05ef1644deb92e634e163532a3b2179e">CY_SAR_RANGE_COND_OUTSIDE</a> = 3UL
<br />
 }<tr class="memdesc:gaccf649d65a86e17939c3d20a684cd9cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the condition (below, inside, above, or outside) of the range detection interrupt.  <a href="group__group__sar__range__thres__register__enums.html#gaccf649d65a86e17939c3d20a684cd9cd">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaccf649d65a86e17939c3d20a684cd9cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga4e9ea88485879db9d2b7667066577fe6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e9ea88485879db9d2b7667066577fe6">&#9670;&nbsp;</a></span>cy_en_sar_range_thres_shift_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__range__thres__register__enums.html#ga4e9ea88485879db9d2b7667066577fe6">cy_en_sar_range_thres_shift_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the lower and upper thresholds for range detection. </p>
<p>The SARSEQ supports range detection to allow for automatic detection of sample values compared to two programmable thresholds without CPU involvement. Range detection is defined by two global thresholds and a condition. The RANGE_LOW value defines the lower threshold and RANGE_HIGH defines the upper threshold of the range.</p>
<p>Range detect is done after averaging, alignment, and sign extension (if applicable). In other words, the thresholds values must have the same data format as the result data. Range detection is always done for all channels scanned. By making RANGE_INTR_MASK=0, the firmware can choose to ignore the range detect interrupt for any channel. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga4e9ea88485879db9d2b7667066577fe6a06f202dbc111e4adea686b491aeb382a"></a>CY_SAR_RANGE_LOW_SHIFT&#160;</td><td class="fielddoc"><p>Shift for setting lower limit of range detection. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga4e9ea88485879db9d2b7667066577fe6a96d78f3a3f9dbb62e0349aaf56b5df6c"></a>CY_SAR_RANGE_HIGH_SHIFT&#160;</td><td class="fielddoc"><p>Shift for setting upper limit of range detection. </p>
</td></tr>
</table>

</div>
</div>
<a id="gaccf649d65a86e17939c3d20a684cd9cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaccf649d65a86e17939c3d20a684cd9cd">&#9670;&nbsp;</a></span>cy_en_sar_range_detect_condition_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__range__thres__register__enums.html#gaccf649d65a86e17939c3d20a684cd9cd">cy_en_sar_range_detect_condition_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the condition (below, inside, above, or outside) of the range detection interrupt. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaccf649d65a86e17939c3d20a684cd9cda2f2cc118441effd4d6825028941b1de8"></a>CY_SAR_RANGE_COND_BELOW&#160;</td><td class="fielddoc"><p>Range interrupt detected when result &lt; RANGE_LOW. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaccf649d65a86e17939c3d20a684cd9cda4828750edf10fa906cfeb20dd8afe45d"></a>CY_SAR_RANGE_COND_INSIDE&#160;</td><td class="fielddoc"><p>Range interrupt detected when RANGE_LOW &lt;= result &lt; RANGE_HIGH. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaccf649d65a86e17939c3d20a684cd9cdab2c9127472581f2ada8ba764e6fac29b"></a>CY_SAR_RANGE_COND_ABOVE&#160;</td><td class="fielddoc"><p>Range interrupt detected when RANGE_HIGH &lt;= result. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaccf649d65a86e17939c3d20a684cd9cda05ef1644deb92e634e163532a3b2179e"></a>CY_SAR_RANGE_COND_OUTSIDE&#160;</td><td class="fielddoc"><p>Range interrupt detected when result &lt; RANGE_LOW || RANGE_HIGH &lt;= result. </p>
</td></tr>
</table>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
